package com.gooluke.mall.user.service.impl;

import com.gooluke.mall.api.po.user.TUserInfo;
import com.gooluke.mall.api.service.user.UserService;
import com.gooluke.mall.user.integration.mapper.UserInfoMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author gooluke
 */
@DubboService
public class UserServiceImpl implements UserService {

    @Value("${server.port}")
    private int port;

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public String getUserDetail() {
        return "this is userDetail :" + port;
    }

    @Override
    public int insert(TUserInfo userInfo) {
        return userInfoMapper.insert(userInfo);
    }
}
